package com.edouardbataille.open.result
{
	public class Result
	{
		
		public var result : Object;
		
		public var array : Array;
		
		public function getString (pos : int) : String
		{
			return array[pos];
		}
		
		public function getBoolean (pos : int) : Boolean
		{
			return array[pos] == 1;
		}
		
		public function getInt (pos : int) : int
		{
			return array[pos];
		}
		
		public function getStringByName (name : String) : String
		{
			return result[name];
		}
		
		public function getBooleanByName (name : String) : Boolean
		{
			return result[name] == 1;
		}
		
		public function getIntByName (name : String) : int
		{
			return result[name];
		}
	}
}